img=$1

if [ -z "$img" ]; then
  echo "功能: 拉取给镜像，并打tag"
  echo "用法: docker-pull.sh 镜像名:版本号"
  exit 1
fi

harbor="thc-test:5000"

echo "拉取镜像: $harbor/$img"

docker pull $harbor/$img
docker tag  $harbor/$img  $img 

echo "拉取镜像完成"
